package cn.edu.cumt.ec.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 资源表
 * </p>
 * 我的模板
 * @author baomidou
 * @since 2021-11-03
 */
@Data
@ApiModel(value = "Resource对象", description = "资源表")
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("资源id")
    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    @ApiModelProperty("资源名称")
    private String resourceName;

    @ApiModelProperty("资源类型，1：菜单，2：按钮")
    private String resourceType;

    @ApiModelProperty("父级资源id")
    private Integer parentResourceId;

    @ApiModelProperty("路由地址")
    private String path;

    @ApiModelProperty("组件路径")
    private String component;

    @ApiModelProperty("叶子，0：不是，1：是")
    private Integer leaf;

    @ApiModelProperty("显示顺序")
    private Integer showSequence;

    @ApiModelProperty("删除状态")
    private Boolean deleted;


}
